import Vue from 'vue'
import App from './App.vue'
import router from './router'
import VirtualList from 'vue-virtual-scroll-list'
import VueLazyload from 'vue-lazyload'
import '@vant/touch-emulator'
import './common'
import Utils from  './common/utils'

Vue.config.productionTip = false
Vue.component('virtual-list', VirtualList)
Vue.prototype.$Utils = Utils

Vue.use(VueLazyload, {
  preLoad: 1,
  error: 'http://106.14.180.152/wqj/images/error.gif',
  loading: 'http://106.14.180.152/wqj/images/loading.gif',
  attempt: 1
})

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
